﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using System.Collections.Generic;
using System.Text;
using System.Net;

namespace UnitTest
{
    using WindowsFormsApp2.Service;

    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            Networker nw = new Networker(@"D:\C#\Suxuan\multi_function_curriculum\控件库测试\控件库测试\bin\Debug\myresource");
            List<string> localtest = new List<string>()
            {
                "test.jpg",
                "hello.png"
            };
            nw.CheckList("yuwen",localtest);

        }

        [TestMethod]
        public void TestMethod2()
        {
            Networker nw = new Networker(@"D:\C#\Suxuan\multi_function_curriculum\控件库测试\控件库测试\bin\Debug\myresource");
            nw.Upload("默认", new List<string>() {"5.txt" });
        }

        [TestMethod]
        public void TestMethod3()
        {
            Networker nw = new Networker(@"D:\C#\Suxuan\multi_function_curriculum\控件库测试\控件库测试\bin\Debug\myresource");
            nw.Download("大学英语",new List<string>() { "ljgc2.png" });
        }
    }
}
